import { Body, Controller, Post } from '@nestjs/common'
import { OrgService } from './org.service'

@Controller('org')
export class OrgController {
  constructor(private readonly orgService: OrgService) { }
  @Post('getOrgList')
  getOrgList() {
    return this.orgService.getOrgList()
  }

  @Post('getOrgMemberList')
  getOrgMemberList(@Body() body) {
    return this.orgService.getOrgMemberList(body.id)
  }
}
